<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-hover table-gray">
    <thead>
        <tr>
            <th>负责人</th>
            <volist name="fields" id="vo">
                <th <eq name="vo['f_type']" value="8">width="150"</eq>
                <if condition="$vo['f_name'] eq 'Binte' or $vo['f_name'] eq 'Ainte' or $vo['f_name'] eq 'Vinte'" value="8">width="100"</if>
                >{$vo.name}
                </th>
            </volist>
            <th>操作</th>
        </tr>
    </thead>
    <tbody class="FormListBox">
        <?php if($info){ ?>
        <tr class="existLine">
            <td class="straight">{$info['member_name']}</td>
            <td class="text-elli">{$info['remark']}</td>
            <td class="straight">{:date('Y-m-d H:i',$info['starttime'])}</td>
            <td class="straight">{:date('Y-m-d H:i',$info['endtime']?$info['endtime']:time())}</td>
            <td>{:intval(array_shift(unserialize($info['integralNum'])))}</td>
            <td></td>
        </tr>
        <?php } ?>
        <volist name="list" id="vo">
        
            <tr id="TaskMissionList-{$vo.id}">
                <td class="straight">{$vo.proposername}</td>
                <volist name="vo['datalist']" id="dvo">
                    <td><div class="limitContent">{:replacebr($dvo)}</div></td>
                </volist>
                <td class="straight">
                	<eq name="vo['state']" value="-1">
                        <a href="javascript:;" onClick="mission_send({$vo.id},this);" class="btn btn-xs btn-success">
                            递交
                        </a>
                    </eq>
                    <eq name="vo['state']" value="1"><span class="label label-warning label-mini">未审批</span> &nbsp; </eq>
                    <eq name="vo['state']" value="2"><span class="label label-info label-mini">审批中</span> &nbsp; </eq>
                    <eq name="vo['state']" value="3"><span class="label label-success label-mini">已完成</span> &nbsp; </eq>
                    <eq name="vo['state']" value="0"><span class="label label-danger label-mini">驳回</span> &nbsp; </eq>
                    <if condition="$vo['state'] neq -1">
                    	<if condition="getAccessMenu($accessList, 'Intesys', 'Mission', 'read') && $task['member_id']==$memberInfo['id']">
                            <a href="javascript:;" class="btn btn-xs btn-info" onClick="_openWindow('{:U('Mission/read', array('id' => $vo['id']))}',800, '{$vo.title}', '提交',function(){ $('#TaskMissionListform').submit(); return true; },'')" >
                                审批
                            </a><!--width="800" title="{$vo.title}【{$vo.proposername}】" rel="{:U('Mission/read', array('id' => $vo['id']))}"-->
                        </if>
                    </if>
                    <if condition="getAccessMenu($accessList, 'Intesys', 'Mission', 'edit') && $vo['state'] neq 3">
                        <a href="javascript:;" onClick="_openWindow('{:U('Mission/edit', array('id' => $vo['id']))}',600, '{$vo.title}', '提交',function(){ $('#TaskMissionListform').submit(); return true; },'')" class="btn btn-xs btn-info ">
                            修改
                        </a><!--OptionBtn title="{$vo.title}【{$vo.proposername}】" rel="{:U('Mission/edit', array('id' => $vo['id']))}"-->
                    </if>
                    <if condition="getAccessMenu($accessList, 'Intesys', 'Mission', 'delete') && $vo['state'] neq 3">
                        <a href="javascript:;" rel="{:U('delete', array('id' => $vo['id']))}" data-id="{$vo.id}"  class="btn btn-xs btn-danger deleteBtn" >
                            删除
                        </a><!--rel="{:U('delete', array('id' => $vo['id']))}" data-id="{$vo.id}"-->
                    </if>
                </td>
            </tr>
        </volist>
    </tbody>
</table>
